<style>
    .inside {
        width:500px;
        height: auto;
        margin: 100px auto 0px;
        border: 1px solid #d1d1d1;
        padding: 15px;
    }
</style>
<div class="inside">
    <div class="padding-all no-margin-top" style="margin-bottom: 50px">
        <h3 class="bold margin-bottom">Change Password</h3>
        <?php
        echo $this->Form->create('User', array(
            'id' => 'user-from',
            'inputDefaults' => array(
                'required' => false,
                'format' => array('before', 'label', 'error', 'between', 'input', 'after')
            ),
            'novalidate' => true
        ));
        ?>

        <?php
        echo $this->Form->input('old_password', array(
            'maxlength' => '30',
            'label' => false,
            'placeholder' => 'Old Password',
            'type' => 'password',
            'onkeypress' => 'checkMaxLength(this,"password");'
                )
        );
        echo $this->Form->input('password', array(
            'maxlength' => '30',
            'label' => false,
            'placeholder' => 'New Password',
            'onkeypress' => 'checkMaxLength(this,"password");'
                )
        );
        echo $this->Form->input('confirm_password', array(
            'maxlength' => '30',
            'label' => false,
            'placeholder' => 'Confirm Password',
            'type' => 'password',
            'onkeypress' => 'checkMaxLength(this,"password");'
                )
        );
        echo $this->Form->end('SUBMIT');
        echo $this->Html->link('CANCEL', '/Users/profile/'.$this->Session->read('User.id'), array(
            'type' => 'button',
            'style' => 'padding-top:5px;',
            'class' => 'bt-cancel',
            'escape' => false));
        ?>
    </div>
</div>
